/*
	Copyright (C) 2009 Salil Bhagurkar
	
	This file is part of ViSE
	
	ViSE is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	ViSE is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.
	
	You should have received a copy of the GNU Lesser General Public License
	along with ViSE.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _ERROR_
#define _ERROR_

/*The default error type is integer (int) */

#define EPINV		-1
#define EPBOUND		-2
#define ENOSUP		-3
#define EUNK		-4
#define EFAIL		-5
#define ESTATEINV	-6
#define ETIMEOUT	-7
/*Unknown Error at the lower level*/
#define ELLERR		-8
#define ENODETECT	-9
#define EMEMERR		-10
#define ENOREG		-11
#define ENODEV		-12
#define ESECERR		-13
#define ENODATA		-14
/*Error from the vm subsystem*/
#define EVM		-15
#define ENOEVENT	-16

#define MAX_ERR -16

#define is_error(error_variable) (error_variable<0)

#endif
